function columns1(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '序号',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '文件名称',
      align: 'center',
      dataIndex: 'fileName'
    },
    {
      title: '下载',
      dataIndex: 'action',
      align: 'center',
      // slots: { title: 'actionName' },
      scopedSlots: { customRender: 'action' }
    }
  ]
  return cols
}
function columns2(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '序号',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '文件名称',
      align: 'center',
      dataIndex: 'fileName'
    },
    {
      title: '下载',
      dataIndex: 'action',
      align: 'center',
      // slots: { title: 'actionName' },
      scopedSlots: { customRender: 'action' }
    }
  ]
  return cols
}
function columns3(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '序号',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '文件名称',
      align: 'center',
      dataIndex: '文件名称'
    },
    {
      dataIndex: 'action',
      align: 'center',
      // slots: { title: 'actionName' },
      scopedSlots: { customRender: 'action' }
    }
  ]
  return cols
}
function columns4(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '序号',
      width: 80,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '所属流程',
      align: 'center',
      dataIndex: 'flowName',
      scopedSlots: { customRender: 'flowName' },
    },
    {
      title: '内控缺陷描述',
      align: 'center',
      dataIndex: 'defectDes',
      scopedSlots: { customRender: 'defectDes' },
    },
    {
      title: '内控缺陷类型',
      align: 'center',
      dataIndex: 'defectType',
      scopedSlots: { customRender: 'defectType' },
    },
    {
      title: '缺陷等级',
      align: 'center',
      dataIndex: 'defectLevel',
      scopedSlots: { customRender: 'defectLevel' },
    },
    {
      title: '风险及影响',
      align: 'center',
      dataIndex: 'riskImpact',
      scopedSlots: { customRender: 'riskImpact' },
    },
    {
      title: '所属部门',
      align: 'center',
      dataIndex: 'unit',
      scopedSlots: { customRender: 'unit' },
    },
    {
      title: '公司管理层回复',
      align: 'center',
      dataIndex: 'companyReply',
      scopedSlots: { customRender: 'companyReply' },
    },
    {
      title: '整改措施',
      align: 'center',
      dataIndex: 'changeMeasure',
      scopedSlots: { customRender: 'changeMeasure' },
    },
    {
      title: '整改情况',
      align: 'center',
      dataIndex: 'changeCase',
      scopedSlots: { customRender: 'changeCase' },
    },
    // {
    //   title:'操作',
    //   dataIndex: 'action',
    //   align: 'center',
    //   // slots: { title: 'actionName' },
    //   scopedSlots: { customRender: 'action' }
    // }
  ]
  return cols
}
function columns5(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '业务流程名称',
      align: 'center',
      dataIndex: 'flowName',
      scopedSlots: { customRender: 'flowName' }
    },
    {
      title: '关键控制数量',
      align: 'center',
      dataIndex: 'controlCount',
      scopedSlots: { customRender: 'controlCount' }
    },
    {
      title: '缺陷类别',
      align: 'center',
      children: [
        {
          title: '设计缺陷',
          dataIndex: 'designDefect',
          scopedSlots: { customRender: 'designDefect' }
        },
        {
          title: '运行缺陷',
          dataIndex: 'runDefect',
          scopedSlots: { customRender: 'runDefect' }
        }
      ]
    },
    {
      title: '缺陷等级',
      align: 'center',
      children: [
        {
          title: '一般缺陷',
          dataIndex: 'generalDefect',
          scopedSlots: { customRender: 'generalDefect' }
        },
        {
          title: '重要缺陷',
          dataIndex: 'importDefect',
          scopedSlots: { customRender: 'importDefect' }
        },
        {
          title: '重大缺陷',
          dataIndex: 'majorDefect',
          scopedSlots: { customRender: 'majorDefect' }
        }
      ]
    },
    {
      title: '缺陷种类',
      align: 'center',
      children: [
        {
          title: '财报缺陷',
          dataIndex: 'finanDefect',
          scopedSlots: { customRender: 'finanDefect' }
        },
        {
          title: '非财报缺陷',
          dataIndex: 'notFinanDefect',
          scopedSlots: { customRender: 'notFinanDefect' }
        }
      ]
    },

    {
      title: '备注',
      align: 'center',
      dataIndex: 'remarks',
      scopedSlots: { customRender: 'remarks' }
    },
    // {
    //   title:'操作',
    //   dataIndex: 'action',
    //   align: 'center',
    //   // slots: { title: 'actionName' },
    //   scopedSlots: { customRender: 'action' }
    // }
  ]
  return cols
}
function columns6(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '序号',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '底稿附件',
      align: 'center',
      dataIndex: '底稿附件'
    },
    {
      dataIndex: 'action',
      align: 'center',
      // slots: { title: 'actionName' },
      scopedSlots: { customRender: 'action' }
    }
  ]
  return cols
}

function columns7(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '序号',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '汇总附件',
      align: 'center',
      dataIndex: 'fileName'
    },
    {
      title: '下载',
      dataIndex: 'action',
      align: 'center',
      // slots: { title: 'actionName' },
      scopedSlots: { customRender: 'action' }
    }
  ]
  return cols
}

export { columns1, columns2, columns3, columns4, columns5, columns6, columns7 }